package com.punch.common.dto.system.dict;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * DictTypeForm-资源数据字典类型 表单
 *
 * @author wujj
 * @version 1.0.0
 * @since 2020/3/10 4:23 下午
 */
@Data
public class DictKeyDTO implements Serializable {

    /**
     * 字典分类主键id
     */
    @ApiModelProperty(name = "dictKeyId", notes = "字典分类主键id,新增操作为空,修改操作需要")
    private Long dictKeyId;


    /**
     * 字典key
     */
    @ApiModelProperty(name = "dictKey", notes = "字典key")
    @NotEmpty(message = "key为空")
    private String dictKey;

    /**
     * key名称为空
     */
    @ApiModelProperty(name = "keyName", notes = "key名称")
    @NotEmpty(message = "key名称为空")
    private String keyName;


    /**
     * 字典描述
     */
    @ApiModelProperty(name = "remarks", notes = "字典描述")
    private String remarks;

}
